﻿<%
    foreach (var eventPropertyDescription in Model.AdditionalPropertiesWithValues.Keys)
    {
        if (eventPropertyDescription.IsNotAutomatic)
            continue;
%>
<strong>
    <%=eventPropertyDescription.Label%>: </strong>
<%
    if (!eventPropertyDescription.IsMultiValued)
    {
%>
<%=Model.AdditionalPropertiesWithValues[eventPropertyDescription][0]%>
<%
    }
        else
        {
%>
<%
    bool isFirst = true;
    foreach (string value in Model.AdditionalPropertiesWithValues[eventPropertyDescription])
    {
        if (!isFirst)
        {
%>
<%=", "%>
<%
}
%>
<%=value%>
<%
if (isFirst)
    isFirst = false;
            }%>
<br />
<%
    }
    }
%>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<AspNetMvc.Models.EventForView>" %>
